import request from '@/config/axios'

// 获得活动列表
export const getactivitylist = async (params) => {
  return await request.get({ url: '/sys/prize/page',params })
}
// 新增活动列表
export const addactivity = async (data) => {
  return await request.post({ url: '/sys/prize/save',data })
}
// 更新活动列表
export const updateactivity = async (data) => {
  return await request.post({ url: '/sys/prize/save',data })
}
// 获得活动详情
export const getacti = async (params) => {
  return await request.get({ url: '/sys/prize/findById',params })
}

// 获得规则详情
export const getrule = async (params) => {
  return await request.get({ url: '/sys/prizeRule/getRulesByPrizeIdId',params })
}
// 设置规则详情
export const setrule = async (data) => {
  return await request.post({ url: '/sys/prizeRule/saveRule',data })
}
// 删除活动
export const deleteactivity = async (params) => {
  return await request.delete({ url: 'sys/prize/delete',params})
}

